projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28d7e4f
)
(w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping
author
Jason Rumney
<jasonr@gnu.org>
Mon, 19 Nov 2007 09:13:58 +0000
(09:13 +0000)
committer
Jason Rumney
<jasonr@gnu.org>
Mon, 19 Nov 2007 09:13:58 +0000
(09:13 +0000)
returns NULL on failure.
src/w32bdf.c
patch
|
blob
|
history
diff --git
a/src/w32bdf.c
b/src/w32bdf.c
index 80ef098d8ded749eadd76445e0056db343cd7730..4a12b1f01900b75affeedab501a13b45fd3f6e32 100644
(file)
--- a/
src/w32bdf.c
+++ b/
src/w32bdf.c
@@
-261,7
+261,7
@@
w32_init_bdf_font(char *filename)
error("Fail to open BDF file");
}
hfilemap = CreateFileMapping(hfile, NULL, PAGE_READONLY, 0, 0, NULL);
- if (
hfilemap == INVALID_HANDLE_VALUE
)
+ if (
!hfilemap
)
{
CloseHandle(hfile);
error("Can't map font");
@@
-828,7
+828,7
@@
int w32_BDF_to_x_font (char *file, char* xstr, int len)
size = fileinfo.nFileSizeLow;
hfilemap = CreateFileMapping (hfile, NULL, PAGE_READONLY, 0, 0, NULL);
- if (
hfilemap == INVALID_HANDLE_VALUE
)
+ if (
!hfilemap
)
{
CloseHandle (hfile);
return 0;